package com.example.lab06;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Test {

    public static void main(String[] args) {
        {
            try {
                BufferedReader bufferedReader = new BufferedReader(new FileReader("lab-06/data/geo.csv"));
                String line, city, longitude, latitude;
                while ((line = bufferedReader.readLine()) != null) {
                    String[] info = line.split(",");
                    city = info[0];
                    longitude = info[1];
                    latitude = info[2];

                    System.out.println(city + ":" + longitude + ":" + latitude);
                }
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
